package com.yanrumiao.entity;

import cc.uncarbon.framework.crud.entity.HelioBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 数据表注释
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName(value = "book_order")
public class BookOrderEntity extends HelioBaseEntity<Long> {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "金额")
    @TableField(value = "money")
    private BigDecimal money;

    @Schema(description = "收支类型(0支出，1收入）")
    @TableField(value = "order_type")
    private Integer orderType;

    @Schema(description = "用户id")
    @TableField(value = "user_id")
    private Long userId;

    @Schema(description = "")
    @TableField(value = "category_id")
    private Long categoryId;

    @Schema(description = "备注")
    @TableField(value = "remark")
    private String remark;

    @Schema(description = "日期")
    @TableField(value = "day")
    private LocalDate day;

}
